﻿
using Architecture.Repository.Interface;
using Architeture.Domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Architecture.Repository.Impl
{
    public class RoleRepository : BaseRepository<RoleInfo>, IRoleRepository
    {
        public RoleRepository(EFCoreContext context) : base(context)
        {
        }

        public async Task<int> AddRole(RoleInfo a)
        {
            return await base.AddAsync(a);
        }

        public async Task<List<RoleInfo>> GetRole()
        {
            return await base.GetAllAsync();
        }

        public async Task<int> RoleUpd(RoleInfo a)
        {
            return await base.Update(a);
        }
    }
}
